** Replication Code for:
** Terrorism Activates Ethnocentrism to Explain Greater Willingness to 
** Sacrifice Civil Liberties: Evidence from Germany
** Authors: Christina Novak Hansen and Peter Thisted Dinesen 
** Date: 10/02/2021

*-------------------------------------------------------------------------------

clear all
use GGSS2016_analysis.dta
svyset xs11 [pweight=wghtpew], vce(linearized)
keep if german==1 & governmentsplit!=.					

*-------------------------------------------------------------------------------
*Appendix N: Robustness check: The activation effect using an alternative ethnocentrism measure
*-------------------------------------------------------------------------------

								***Table N1***

*Alternative ethnocentrism measure: "It is better for a country if all people belong to a common culture"
svy: regress st_terrori c.st_homocult i.sex st_age st_age2 i.proedu2 i.work2 if treatment1!=. 
outreg2 using Table_N1.xls, drop(i.sex st_age st_age2 i.proedu2 i.work2) nocons stats(coef se) dec(2) symbol(**,*) alpha(0.01,0.05) label replace 
svy: regress st_terrori c.st_homocult i.treatment1 i.sex st_age st_age2 i.proedu2 i.work2 
outreg2 using Table_N1.xls, drop(i.sex st_age st_age2 i.proedu2 i.work2) nocons stats(coef se) dec(2) symbol(**,*) alpha(0.01,0.05) label append 
svy: regress st_terrori c.st_homocult##i.treatment1 i.sex st_age st_age2 i.proedu2 i.work2  
outreg2 using Table_N1.xls, drop(i.sex st_age st_age2 i.proedu2 i.work2) nocons stats(coef se) dec(2) symbol(**,*) alpha(0.01,0.05) label append

*-------------------------------------------------------------------------------
